package com.wuhuahe.luanfeng.javanio;

/**
 * Created By wuhuahe
 * author:游龙
 * Date: 2018-07-09
 * Time: 21:23
 * Desc:
 */
public class TimeServer {

    public static void main(String[] args) {
        int port = 8081;
        if(args != null && args.length > 0){
            try{
                port = Integer.valueOf(args[0]);
            }catch (NumberFormatException e){}
        }

        MultiplexerTimeServer timeServer = new MultiplexerTimeServer(port);
        new Thread(timeServer, "NIO-MultiplexerTimeServer-001").start();
    }
}
